package com.osfw.activiti.domain;


import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

/**
 * 流程链路信息
 */
@Data
@Accessors(chain = true)
public class ProcessLinkInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    /* 源key */
    private String from;
    /* 目标key */
    private String to;
    /* 源端口 */
    private String fromPort;
    /* 目标端口 */
    private String toPort;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("from", getFrom())
                .append("to", getTo())
                .append("fromPort", getFromPort())
                .append("toPort", getToPort())
                .toString();
    }

}
